import request from '@/utils/request'

export default {
    //获取一级目录和二级目录 
    getSubjectList() {
        return request({
            url: '/eduservice/subject/',
            method: 'get'
        })
    },
     //根据id删除节点 
     removeById(id) {
        return request({
            url: '/eduservice/subject/'+id,
            method: 'delete'
        })
    },
    addOneLevel(subject){
        return request({
            url: '/eduservice/subject/addOne',
            method: 'post',
            data: subject
        })
    },
    addTwoLevel(subject){
        return request({
            url: '/eduservice/subject/addTwo',
            method: 'post',
            data: subject
        })
    }

}
